package com.ruoyi.partybuilding.domain;

import com.easy.query.core.annotation.Table;

import com.ruoyi.partybuilding.common.EQuery.CreateByEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.*;

/**
 * 文件信息对象 pb_files
 * 
 * @author he-liangliang@outlook.com
 * @date 2024-11-27
 */

@Table("pb_files")
@Data
public class Files extends CreateByEntity.LongId
{
    private static final long serialVersionUID = 1L;



    /** 文件名称 ; */
    @ApiModelProperty(value = "文件名称")
    @Excel(name = "文件名称")
    private String name;

    /** 文件扩展名-类型 ; */
    @ApiModelProperty(value = "文件扩展名-类型")
    @Excel(name = "文件扩展名-类型")
    private String ext;

    /** 文件路径 ; */
    @ApiModelProperty(value = "文件路径")
    @Excel(name = "文件路径")
    private String url;

    /** 大小kb ; */
    @ApiModelProperty(value = "大小kb")
    @Excel(name = "大小kb")
    private Long size;

    String remark;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("ext", getExt())
            .append("url", getUrl())
            .append("size", getSize())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
